package com.jy.adscm.spss.controller;


import com.jy.adscm.spss.service.AssembleService;
import com.jy.adscm.support.SimpleCoreResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yyy
 * @since 2018-11-08
 */
@RestController
@RequestMapping("adscm/operation/zz")
public class AssembleController {
    @Autowired
    AssembleService assembleService;
    @RequestMapping("/getByWokeEffect")
    public SimpleCoreResponse getByWokeEffect(String BATCHNUMS) throws Exception{
        return  new SimpleCoreResponse("200","查询成功",assembleService.getByWokeEffect(BATCHNUMS));
    }

    @RequestMapping("/getSameBatch")
    public SimpleCoreResponse getSameBatch(String BATCHNUMS,String Operator,String other) throws Exception{
        return new SimpleCoreResponse("200","查询成功",assembleService.getSameBatch(BATCHNUMS, Operator, other));
    }

    @RequestMapping("/getNumber")
    public SimpleCoreResponse getNumber(String BATCHNUMS){
        return new SimpleCoreResponse("200","查询成功",assembleService.getNumber(BATCHNUMS));
    }

    @RequestMapping("/getOperator")
    public SimpleCoreResponse getOperator(String BATCHNUMS){
        return new SimpleCoreResponse("200","查询成功",assembleService.getOperator(BATCHNUMS));
    }
    @RequestMapping("/getTranslate")
    public SimpleCoreResponse getTranslate(){
        return new SimpleCoreResponse("200","查询成功",assembleService.getTranslate());
    }
}

